<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script>
        $(document).ready(function(){
            $("button").click(function(){
                $.ajax({url:"/g",success:function(result){
                    // for(var i in result){
                    //     console.log(i)
                    //     console.log(result[i])
                    //     console.log(result[i].Name)
                    // }
                }});
            });
        });
    </script>
</head>
<body>

<div id="div1"><h2>cookie</h2></div>
<button>get msg from server</button>

</body>
</html>